//
//  TransListCell.m
//  FinancialProduct
//
//  Created by Stella on 2017/9/4.
//  Copyright © 2017年 maq. All rights reserved.
//

#import "TransListCell.h"

@implementation TransListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)setTransModel:(TransModel *)transModel{
    self.name.text=transModel.SubProductName;
    self.top1.text=transModel.BookingType;
    self.top2.text=transModel.QAmount;
    self.top3.text=transModel.QTotalPayment;
    self.top4.text=transModel.FundsStatus;
    self.top5.text=transModel.BBookingStatus;
    if (transModel.QRedeemshare.length>0) {
        self.top2.text=transModel.QRedeemshare;
        self.top3.text=transModel.BBookingStatus;
    }
    self.timeLeft.text=[NSString stringWithFormat:@"开放/成立日：%@",transModel.PurchaseOpenDay];
    self.timeRight.text=@"";
    if (transModel.ProductPeriod.length>0) {
        self.timeLeft.text=[NSString stringWithFormat:@"产品期限：%@",transModel.ProductPeriod];
        self.timeRight.text=[NSString stringWithFormat:@"开放/成立日：%@",transModel.PurchaseOpenDay];
    }
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
